package com.mycompany.virtualApp.service;

import com.mycompany.virtualApp.dao.ClickDao;
import com.mycompany.virtualApp.dao.UserDao;
import com.mycompany.virtualApp.entity.ClickDetails;
import com.mycompany.virtualApp.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/8 0008.
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> selectByParam(Map<String, Object> map) {
        return userDao.selectByParam(map);
    }

    @Override
    public int insert(User user) {
        return userDao.insert(user);
    }

    @Override
    public User selectOneByParam(Map<String, Object> map) {
        return userDao.selectOneByParam(map);
    }
}
